package com.example.serviceDriverUser.remote;

import com.example.internalcommon.dto.DriverUser;
import com.example.internalcommon.dto.ResponseResult;
import com.example.internalcommon.response.TerminalResponse;
import com.example.internalcommon.response.TrackResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author lyra
 * @Date 2023/4/18 17:20
 **/
@FeignClient("service-map")
public interface ServiceMapClient {

    @RequestMapping(method = RequestMethod.POST,value = "/terminal/add")
    ResponseResult<TerminalResponse> addTerminal(@RequestParam String name,@RequestParam String desc);

    @RequestMapping(method = RequestMethod.POST,value = "/track/add")
    ResponseResult<TrackResponse> addTrack(@RequestParam String tid);
}
